package com.pengpeng.android.logic.main;

import android.app.Activity;
import android.content.Intent;

import com.pengpeng.android.activity.R;
import com.pengpeng.android.activity.BaiduMapActivity;
import com.pengpeng.android.activity.ConfigActivity;
import com.pengpeng.android.activity.ExitActivity;
import com.pengpeng.android.activity.FriendsManageActivity;
import com.pengpeng.android.activity.LevelSelectActivity;
import com.pengpeng.android.activity.RountSelectActivity;
import com.pengpeng.android.activity.SearchActivity;

public class OptM_MainMenuManager {
      
	 private Activity activity=null;
	  public OptM_MainMenuManager(Activity activity)
	  {
		 this.activity=activity;
	  }
  
	   public boolean dosearch()
	  {    
		   Intent startnew=new Intent(activity,SearchActivity.class);
		   activity.startActivity(startnew);

		   return true;
	  }
	   
	   public boolean doroute()
	  {
		   Intent startnew=new Intent(activity,RountSelectActivity.class);
		   activity.startActivity(startnew);
		   return true;
	  }
	  public boolean dolevel()
	  {
		  Intent startnew=new Intent(activity,LevelSelectActivity.class);
		  activity.startActivity(startnew);
		  return true;
	  }
	  public boolean dofriendsmanage()
	  {
		  Intent startnew=new Intent(activity,FriendsManageActivity.class);
		  activity.startActivity(startnew);
		  return true;
	  }
	  public boolean doconfig()
	  {
		  Intent startnew=new Intent(activity,ConfigActivity.class);
		  activity.startActivity(startnew);
		  return true;
	  }
	  public boolean doexit()
	  { 
		  Intent startnew=new Intent(activity,ExitActivity.class);
		  activity.startActivity(startnew);
		  return true;
	  }


}//class InitOptionsMenuManager
